package football.haha.com.footballtv.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import butterknife.Bind;
import butterknife.ButterKnife;
import football.haha.com.footballtv.R;

/**
 * Created by haha on 2017/10/4.
 */

public class MeFragment extends BaseFragment {

    @Bind(R.id.ll_meal)
    LinearLayout llMeal;
    @Bind(R.id.ll_record)
    LinearLayout llRecord;
    @Bind(R.id.ll_guest)
    LinearLayout llGuest;
    @Bind(R.id.ll_business)
    LinearLayout llBusiness;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        ViewGroup view = (ViewGroup) inflater.inflate(R.layout.fragment_me, container, false);
        createBorderView(view);
        ButterKnife.bind(this, view);

        llMeal.setOnFocusChangeListener(this);
        llRecord.setOnFocusChangeListener(this);
        llGuest.setOnFocusChangeListener(this);
        llBusiness.setOnFocusChangeListener(this);

        borderView.setBorderBitmapResId(R.drawable.bg_shape_white, (int) getResources().getDimension(R.dimen.px10));

        return view;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }
}
